<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>表单组合</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/plugin/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="/static/layui/style/admin.css">
</head>
<style>
    .tree-content {
        display: none;
        position: absolute;
        height: 150px;
        left: 0 !important;
        top: 38px !important;
        background: #ffffff;
        z-index: 9999999;
        border: 1px solid #C9C9C9 !important;
        overflow-y: auto;
    }

</style>
<body>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" lay-filter="component-form-group">
                <input type="hidden" name="id" id="id" th:value="${id}">
                <div class="layui-form-item">
                    <label class="layui-form-label">名称</label>
                    <div class="layui-input-block">
                        <input type="text" id="name" name="name" lay-verify="required" autocomplete="off"
                               placeholder="请输入名称" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">url</label>
                    <div class="layui-input-block">
                        <input type="text" id="url" name="url" autocomplete="off"
                               placeholder="请输入url" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-block">
                        <input type="number" id="sequence" name="sequence" lay-verify="required" autocomplete="off"
                                class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">父级</label>
                    <div class="layui-input-block">
                        <div id="pid" name="pid" class="layui-form-select select-tree">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-layout-admin">
                    <div class="layui-input-block">
                        <div class="layui-footer" style="left: 0;">
                            <button class="layui-btn" lay-submit="" lay-filter="component-form-demo1">立即提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="/static/layui/layui.js"></script>
<script src="/static/plugin/ztree/js/jquery-1.4.4.min.js"></script>
<script src="/static/js/common/common.js"></script>
<script src="/static/plugin/ztree/js/jquery.ztree.all.js"></script>
<script src="/static/plugin/selectTree.js"></script>
<script src="/static/js/sys/resource/form.js"></script>
</body>
</html>
